package com.business.dynamic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 用户喜欢表 实体类
 * @author chenjiehong
 * @date 2019-11-29 15:15:38
 * @since 1.0
 */
@TableName(value = "dynamic_like")
public class DynamicLike{


    // columns START

	@TableId(value = "id",type=IdType.AUTO)
	private Integer id; 

	/**
	 * 作品id 
	 */
	@TableField(value = "dynamic_id")
	private Integer dynamicId; 

	/**
	 * 用户id
	 */
	@TableField(value = "user_id")
	private Integer userId;


	@TableField(value = "create_time")
	private Date createTime;
	// columns END

	public Integer getId() {
		return id;
	}

    public void setId(Integer id) {
    	this.id = id;
    }
	public Integer getDynamicId() {
		return dynamicId;
	}

    public void setDynamicId(Integer dynamicId) {
    	this.dynamicId = dynamicId;
    }

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		String log = ""; 
		log += "[id:" + getId() + "]";
		log += "[dynamicId:" + getDynamicId() + "]";
		log += "[userId:" + getUserId() + "]";
		return log;
	}
}